package com.sso.feign;

import com.sso.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sso",path = "/user")
public interface UserFeignService {
    @PostMapping("/get")
    User get(@RequestParam("name")String name);
}
